<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"  %>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div id="MODBLK_221" class="mod_block mb_wjtiVbqu_block">
	<h3 class="blk_t" style="margin-top: 30px;">
		<s:property value="%{getText('Index_Products')}"/>
	</h3>
	<div class="newprod">
		<div class="newprod_top"></div>
		<div class="newprod_con">
			<div class="pro_over">
				<table class="media_grid" cellspacing="4" width="100%">
					<tbody>
						<tr>
						<c:choose>
							<c:when test="${empty minProduct}">
								<s:property value="%{getText('Index_Products_Null')}"/>
							</c:when>
							<c:otherwise>
								<c:forEach items="${minProduct}" var="product">
									<td>
										<div class="newprod_list">
											<div class="newprod_pic">
												<c:forEach var="img" items="${product.images}" varStatus="num">
												<c:if test="${num.index==0}">
													<a href="<%=basePath%>productView.action?productId=${product.id}" title="${product.name }">
														<img name="picautozoom" border="0" src="${img.path }"
															class="prodthumb"
															style="padding-top: 26px; padding-right: 0px; padding-bottom: 26px; padding-left: 0px;">
													</a>
												</c:if>												
												</c:forEach>
											</div>
											<div class="newprod_name">
												<a href="<%=basePath%>productView.action?productId=${product.id}">${product.name }</a>
											</div>
											<div class="newprod_price">
												${product.model }
											</div>
											<div class="newprod_intr">
												<s:property value="%{getText('Index_Type')}"/>:
												<a href="<%=basePath%>product.action?productType=${product.category.id }">${product.category.name }</a>
											</div>
											<div class="blankbar1"></div>
										</div>
									</td>	
								</c:forEach>
							</c:otherwise>
						</c:choose>													
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<div class="list_bot"></div>
	</div>
</div>

<div id="MODBLK_221" class="mod_block mb_wjtiVbqu_block">
	<h3 class="blk_t">
		<s:property value="%{getText('Index_Equipment')}"/>
	</h3>
	<div class="newprod">
		<div class="newprod_top"></div>
		<div class="newprod_con">			
			<div class="pro_over">
				<table class="media_grid" cellspacing="4" width="100%">
					<tbody>
						<tr>
						<c:choose>
							<c:when test="${empty minEquipment}">
								<s:property value="%{getText('Index_Equipment_Null')}"/>
							</c:when>
							<c:otherwise>
								<c:forEach items="${minEquipment}" var="equipment">
									<td>
										<div class="newprod_list">
											<div class="newprod_pic">
												<c:forEach var="img" items="${equipment.images}" varStatus="num">
												<c:if test="${num.index==0}">
													<a href="<%=basePath%>equipmentView.action?equipmentId=${equipment.id}" title="${equipment.name }">
														<img name="picautozoom" border="0" src="${img.path }"
															class="prodthumb"
															style="padding-top: 26px; padding-right: 0px; padding-bottom: 26px; padding-left: 0px;">
													</a>
												</c:if>												
												</c:forEach>
											</div>
											<div class="newprod_name">
												<a href="<%=basePath%>equipmentView.action?equipmentId=${equipment.id}">${equipment.name }</a>
											</div>
											<div class="newprod_price">
												${equipment.model }
											</div>
											<div class="newprod_intr">
												<s:property value="%{getText('Index_Type')}"/>:
												<a href="<%=basePath%>equipment.action?equipmentType=${equipment.category.id }">${equipment.category.name }</a>
											</div>
											<div class="blankbar1"></div>
										</div>
									</td>	
								</c:forEach>
							</c:otherwise>
						</c:choose>													
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<div class="list_bot"></div>
	</div>
	<div class="blankbar"></div>
</div>